package com.woniuxy.springboot.mybatis.service;

import com.woniuxy.springboot.mybatis.mapper.DeptMapper;
import com.woniuxy.springboot.mybatis.pojo.Dept;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DeptServiceImpl implements DeptService {
    @Autowired
    private DeptMapper deptMapper;
    @Override
    public boolean addDept(Dept dept) {
        try{
            deptMapper.insertDept(dept);
            return true;
        }catch (Exception e){
            e.printStackTrace();
        }
        return false;
    }
}
